package main

import (
	"fmt"
)

type user struct {
	_    int
	name string
	age  int
}

func test() {
	var u user
	fmt.Println("补位字段")
	fmt.Println(u)
}

type teacher struct {
	name string
	info struct {
		number  string
		address string
	}
}

func test1() {
	fmt.Println("匿名结构")
	var t teacher
	t.info.address = "beijing"
	fmt.Println(t)
}

type people struct {
	name string
	info string
}

func test2() {
	fmt.Println("匿名字段")

}

func main() {
	// test()
	// test1()
}
